-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix pom version and add compiler plugin #6
Conversation
f2eeeb9
to
c0fff7d
Compare
I see the travis build was set to run on 1.7 so I've set the compiler plugin to 1.7 also. |
I'm not JLatexMath dev but I have few concerns. Currently, the project uses ant and the jar for deployment to maven central should be the one built by |
I agree with your concern about multiple ways of producing the same thing. If you want to concentrate on the ant build that's ok but it's to the detriment of this project I'd say. Very few prominent java projects use ant for the SDLC. It's either maven or gradle, and for really good reasons. I've migrated the project to maven at https://github.com/davidmoten/jlatexmath (in master branch) and it is in much better shape for it. For starters:
It's a big looking change but is primarily shuffling files around in folders and some enhancements to the examples to make them tests. If you went this way you'd drop the ant build files. My question for the project maintainers is are you interested in proceeding with such a change? Proof of concept is at the link above. Clone it and run |
Oh I do want to add that I'm very impressed with the jlatexmath library! It's fantastic and I do appreciate the work that's been done. Just thinking it's time it was modernized in terms of build and test. |
@calixteman deserves almost all the credits! About the change, I think calixte and myself would be happy to accept the PR as long as it doesn't remove any features. (and that two build systems don't coexist) |
Yep I agree with Sylvestre. So if you want to improve things (build, unit tests, ...) then everybody is welcome. |
I'm all for maven. But as @sylvestre said we should make sure that migration to maven doesn't lose any functionality. Looking at Targets: |
Macros: you've an example on how to write your own macros in examples/Macros, "ant Macros" is here to build the example. |
I might open an issue to record these questions against. Some of the stuff
has been obvious, some bits I haven't looked at yet and I'll have
questions. I would aim for the artifacts produced by the build having
exactly the same content as currently produced by these ant targets.
…On Fri, 16 Dec 2016, 19:08 calixteman ***@***.***> wrote:
*Macros*: you've an example on how to write your own macros in
examples/Macros, "ant Macros" is here to build the example.
*buildJarMinimal*: jar without cyrillic and greek fonts which are put in
separate jar files
*fop*: build the jlm (JLatexMath) jar and the fop plugin. The fop plugin
is used to put latex in pdf files in using fop (
https://xmlgraphics.apache.org/fop/), you've an example here:
https://github.com/opencollab/jlatexmath/tree/master/plugin/fop/examples
*plugin*: fop-plugin only
*embedded*: jlm + fop-plugin in one jar file
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATa6_Dqd4uTSwxIDiKl5ITiKSwK4uwqks5rIkbtgaJpZM4LNhjc>
.
|
Just like in any software, some piece might be too old or useless. So, don't hesitate to question things :) |
Yep I certainly will question things, thanks. I'll get the basics going, report progress and then chase some details. |
@nbeloglazov the current pom.xml will provide you the same jars you uploaded to the MCR, without examples, which is sufficient in most cases. I guess Doing it the maven way, one would create separate modules. One for It would be nice to deploy jlm, e.g. with the Nexus Staging Maven plugin or Ant task, via the maven and/or ant build script. This way @calixteman and @sylvestre could do it themselves by executing the script. Of course, they would need the repository credentials. |
@opcodevoid I agree with all you said. The current state of https://github.com/davidmoten/jlatexmath is that:
|
BTW, in terms of those examples I'm tempted to leave the Basic examples in the core jlatexmath project as tests (good to have some tests!) and move the others out into their own projects (also to distinguish their particular dependencies). I'll do that and see how it looks. |
An update (at https://github.com/davidmoten/jlatexmath):
|
Can I get a response to my questions? |
i) about tests: I didn't make these kind of tests because of the difference of rendering between openjdk and sun jdk (as far as I remember, in Java 6 the font rendering was made by a third party library which was not free). So, if you want to do them, it's ok for me: your way to do will be mine ;) |
Exporting using FreeHEP works OK for embedding Fonts, eg
|
I'm close to submitting the PR for repackaging. I've cherry-picked recent commits but am ignoring the massive reindent d7d9456 commit because I end up with too many merge problems. Perhaps we could roll-back that commit and apply clean-up actions like that after? |
By the way it was pleasing to see the png distance tests start failing when the italics render fix was added. I looked at the the images generated by the tests and updated the expected images with those generated ones. Once travis is incorporated we can see if they continue working on OpenJDK as well. |
@davidmoten: sure you can revert the massive reindent (fyi I use astyle to do it). |
a couple of minor changes to the recently merged pom.xml: